package com.blog.feign;

import com.blog.common.RespBean;
import com.blog.feign.fallback.SecAccountFeignClientFallBack;
import com.blog.feign.fallback.SecGoodsFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "service-sec-accounts" ,fallback = SecAccountFeignClientFallBack.class)
public interface SecAccountFeignClient {
    @PutMapping("/hrAccount/hrAccountAdjustByHrId")
    public int hrAccountAdjustByHrId(@RequestParam("price") BigDecimal price, @RequestParam("hrid") Integer hrid);
}
